Part Number Hot Search : 
KF200 740021 MB90V340 Y7C14 SK304 AN807 ADG1607B 7MDT1
Product Description
Full Text Search
 

To Download ADE7756AN-REF Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  rev. 0 information furnished by analog devices is believed to be accurate and reliable. however, no responsibility is assumed by analog devices for its use, nor for any infringements of patents or other rights of third parties that may result from its use. no license is granted by implication or otherwise under any patent or patent rights of analog devices. a ade7756 * one technology way, p.o. box 9106, norwood, ma 02062-9106, u.s.a. tel: 781/329-4700 www.analog.com fax: 781/326-8703 ? analog devices, inc., 2001 active energy metering ic with serial interface functional block diagram multiplier dv dd hpf1 lpf2 dgnd clkout v1p v1n v2p v2n 2.4v reference adc av dd pga clkin ref in/out cf reset agnd 4k phcal[5:0] multiplier apos[11:0] dfc din dout sclk cs sag zx irq ade7756 registers and serial interface ade7756 temp sensor apgain[11:0] cfdiv[11:0] lpf1 adc features high accuracy, supports iec 687/1036 less than 0.1% error over a dynamic range of 1000 to 1 an on-chip user programmable threshold for line voltage sag detection and psu supervisory the ade7756 supplies sampled waveform data (20 bits) and active energy (40 bits) digital power, phase and input offset calibration an on-chip temperature sensor ( 3 c typical after calibration) an spi-compatible serial interface a pulse output with programmable frequency an interrupt request pin (irq) and status register provide early warning of register overflow and other conditions proprietary adcs and dsp provide high accuracy over large variations in environmental conditions and time reference 2.4 v 8% (20 ppm/ c typical) with external overdrive capability single 5 v supply, low power (25 mw typical) * u.s. patents 5,745,323; 5,760,617; 5,862,069; 5,872,469; other pending. general description the ade7756 is a high-accuracy electrical power measurement ic with a serial interface and a pulse output. the ade7756 incorporates two second-order sigma-delta adcs, reference circuitry, te mperature sensor, and all the signal processing required to perform active power and energy measurement. the ade7756 contains a sampled waveform register and an active energy register capable of holding at least five seconds of accumulated power at full load. data is read from the ade7756 via the serial interface. the ade7756 also provides a pulse output (cf) with a frequency that is proportional to the active power. in addition to real power information, the ade7756 also provides system calibration features, i.e., channel offset correction, phase calibration, and power calibration. the part also incorporates a detection circuit for short duration low voltage variations or sags. the voltage threshold level and the duration (in number of half- line cycles) of the variation are user programmable. an open drain logic output ( sag ) goes active low when a sag event occurs. a zero crossing output (zx) produces an output that is synchro- nized to the zero crossing point of the line voltage. this output can be used to extract timing or frequency inform ation from the line. the signal is also used intern ally to the chip in the calibration mode. this permits faster and more accurate calibration of the real power calculation. this signal is also useful for synchronization of relay switching with a voltage zero crossing, thus improving the relay life by reducing the risk of arcing. the interrupt request output is an open drain, active low logic output. the irq output will become active when the accumu- lated real power register is half-full and also when the register overflows. a status register indicates the nature of the interrupt. the ade7756 is available in 20-lead dip and 20-lead ssop packages.
rev. 0 ade7756 C2C features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 general description . . . . . . . . . . . . . . . . . . . . . . . . . 1 functional block diagram . . . . . . . . . . . . . . . . . 1 ade7756Cspecifications . . . . . . . . . . . . . . . . . . . . . . . 3 timing characteristics . . . . . . . . . . . . . . . . . . . . . 5 absolute maximum ratings . . . . . . . . . . . . . . . . . 6 ordering guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 pin configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 pin function descriptions . . . . . . . . . . . . . . . . . . 6 terminology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 measurement error . . . . . . . . . . . . . . . . . . . . . . . . . 8 phase error between channels . . . . . . . . . . . . . 8 power supply rejection . . . . . . . . . . . . . . . . . . . . . . 8 adc offset error . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 gain error . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 gain error match . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 analog inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 zero crossing detection . . . . . . . . . . . . . . . . . . . 13 line voltage sag detection . . . . . . . . . . . . . . . . 14 sag level set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 power supply monitor . . . . . . . . . . . . . . . . . . . . . . 14 interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 using the ade7756 interrupts with an mcu . . . . . . . . . 15 interrupt timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 temperature measurement . . . . . . . . . . . . . . . . 16 analog-to-digital conversion . . . . . . . . . . . . . 16 antialias filter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 adc transfer function . . . . . . . . . . . . . . . . . . . . . . . . . . 17 reference circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 channel 1 adc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 channel 1 adc gain adjust . . . . . . . . . . . . . . . . . . . . . . 18 channel 1 sampling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 channel 2 adc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 channel 2 sampling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 phase compensation . . . . . . . . . . . . . . . . . . . . . . . . 20 active power calculation . . . . . . . . . . . . . . . . . 21 energy calculation . . . . . . . . . . . . . . . . . . . . . . . . 22 integration times under steady load . . . . . . . . . . . . . . . 23 power offset calibration . . . . . . . . . . . . . . . . . . 23 energy-to-frequency conversion . . . . . . . . . 23 energy calibration . . . . . . . . . . . . . . . . . . . . . . . . . 24 calibrating the energy meter . . . . . . . . . . . . . 24 calculating the average active power . . . . . . . . . . . . . . . 24 calibrating the frequency at cf . . . . . . . . . . . . . . . . . . . 24 energy meter display . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 clkin frequency . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 application information . . . . . . . . . . . . . . . . . . . 25 suspending the ade7756 functionality . . . . 26 serial interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 serial write operation . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 serial read operation . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 register descriptions . . . . . . . . . . . . . . . . . . . . . . 29 communications register . . . . . . . . . . . . . . . . . . . . . . . . 29 mode register (06h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 interrupt status register (04h)/reset interrupt status register (05h) . . . . . . . . . . . . . . . . . . . . . . . . . . 31 outline dimensions . . . . . . . . . . . . . . . . . . . . . . . . . 32 table of contents
rev. 0 C3C ade7756 specifications 1 parameter a version b version unit test conditions/comments energy measurement accuracy measurement bandwidth 14 14 khz clkin = 3.579545 mhz measurement error 1 on channel 1 channel 2 = 300 mv rms/60 hz, gain = 2 channel 1 range = 1 v full scale gain = 1 0.1 0.1 % typ over a dynamic range 1000 to 1 gain = 2 0.1 0.1 % typ over a dynamic range 1000 to 1 gain = 4 0.1 0.1 % typ over a dynamic range 1000 to 1 gain = 8 0.1 0.1 % typ over a dynamic range 1000 to 1 gain = 16 0.1 0.1 % typ over a dynamic range 1000 to 1 channel 1 range = 0.5 v full scale gain = 1 0.1 0.1 % typ over a dynamic range 1000 to 1 gain = 2 0.1 0.1 % typ over a dynamic range 1000 to 1 gain = 4 0.1 0.1 % typ over a dynamic range 1000 to 1 gain = 8 0.1 0.1 % typ over a dynamic range 1000 to 1 gain = 16 0.2 0.2 % typ over a dynamic range 1000 to 1 channel 1 range = 0.25 v full scale gain = 1 0.1 0.1 % typ over a dynamic range 1000 to 1 gain = 2 0.1 0.1 % typ over a dynamic range 1000 to 1 gain = 4 0.1 0.1 % typ over a dynamic range 1000 to 1 gain = 8 0.2 0.2 % typ over a dynamic range 1000 to 1 gain = 16 0.2 0.2 % typ over a dynamic range 1000 to 1 phase error 1 between channels 0.05 0.05 max line frequency = 45 hz to 65 hz, hpf on ac power supply rejection 1 av dd = dv dd = 5 v + 175 mv rms/120 hz output frequency variation (cf) 0.2 0.2 % typ channel 1 = 20 mv rms/60 hz, gain = 16, range = 0.5 v channel 2 = 175 mv rms/60 hz, gain = 4 dc power supply rejection 1 av dd = dv dd = 5 v 250 mv dc output frequency variation (cf) 0.3 0.3 % typ channel 1 = 20 mv rms/60 hz, gain = 16, range = 0.5 v channel 2 = 175 mv rms/60 hz, gain = 4 analog inputs see analog inputs section maximum signal levels 1 1 v max v1p, v1n, v2n and v2p to agnd input impedance (dc) 390 390 k ? min bandwidth 14 14 khz clkin/256, clkin = 3.579545 mhz gain error 1, 2 external 2.5 v reference, gain = 1 on channel 1 and 2 channel 1 range = 1 v full scale 4 4 % typ v1 = 1 v dc range = 0.5 v full scale 4 4 % typ v1 = 0.5 v dc range = 0.25 v full scale 4 4 % typ v1 = 0.25 v dc channel 2 4 4 % typ v2 = 1 v dc gain error match 1 external 2.5 v reference channel 1 range = 1 v full scale 0.3 0.3 % typ gain = 1, 2, 4, 8, 16 range = 0.5 v full scale 0.3 0.3 % typ gain = 1, 2, 4, 8, 16 range = 0.25 v full scale 0.3 0.3 % typ gain = 1, 2, 4, 8, 16 channel 2 0.3 0.3 % typ gain = 1, 2, 4, 8, 16 offset error 1 channel 1 20 20 mv max range = 1 v, gain = 1 channel 2 20 20 mv max gain = 1 waveform sampling sampling clkin/128, 3.579545 mhz/128 = 27.9 ksps channel 1 see channel 1 sampling signal-to-noise plus distortion 62 62 db typ 700 mv rms/60 hz, range = 1 v, gain = 1 bandwidth (C3 db) 14 14 khz clkin = 3.579545 mhz channel 2 see channel 2 sampling signal-to-noise plus distortion 52 52 db typ 300 mv rms/60 hz, gain = 2 bandwidth (C3 db) 156 156 hz clkin = 3.579545 mhz (av dd = dv dd = 5 v 5%, agnd = dgnd = 0 v, on-chip reference, clkin = 3.579545 mhz xtal, t min to t max = ?0 c to +85 c, unless otherwise noted.)
rev. 0 C4C ade7756?pecifications parameter a version b version unit test conditions/comments reference input ref in/out input voltage range 2.6 2.6 v max 2.4 v + 8% 2.2 2.2 v min 2.4 v C 8% input capacitance 10 10 pf max on-chip reference nominal 2.4 v at ref in/out pin reference error 200 200 mv max load current 10 10 a max output impedance 4 4 k ? min temperature coefficient 20 20 ppm/ c typ 80 ppm/ c max clkin note all specifications clkin of 3.579545 mhz input clock frequency 10 10 mhz max 1 1 mhz min logic inputs reset , din, sclk, clkin and cs input high voltage, v inh 2.4 2.4 v min dv dd = 5 v 5% input low voltage, v inl 0.8 0.8 v max dv dd = 5 v 5% input current, i in 3 3 a max typically 10 na, v in = 0 v to dv dd input capacitance, c in 10 10 pf max logic outputs sag and irq open drain outputs, 10 k ? pull-up resistor output high voltage, v oh 4 4 v min i source = 5 ma output low voltage, v ol 0.4 0.4 v max i sink = 0.8 ma zx and dout output high voltage, v oh 4 4 v min i source = 5 ma output low voltage, v ol 0.4 0.4 v max i sink = 0.8 ma cf output high voltage, v oh 4 4 v min i source = 5 ma output low voltage, v ol 0.4 0.4 v max i sink = 7 ma power supply for specified performance av dd 4.75 4.75 v min 5 v C 5% 5.25 5.25 v max 5 v + 5% dv dd 4.75 4.75 v min 5 v C 5% 5.25 5.25 v max 5 v + 5% ai dd 3 3 ma max typically 2.0 ma di dd 4 4 ma max typically 3.0 ma notes 1 see terminology section for explanation of specifications. 2 see plots in typical performance characteristic curves. 3 see analog inputs section. specifications subject to change without notice
rev. 0 ade7756 C5C timing characteristics 1, 2 parameter a, b versions unit test conditions/comments write timing t 1 20 ns (min) cs falling edge to first sclk falling edge. t 2 150 ns (min) sclk logic high pulsewidth. t 3 150 ns (min) sclk logic low pulsewidth. t 4 10 ns (min) valid data setup time before falling edge of sclk. t 5 5 ns (min) data hold time after sclk falling edge. t 6 6.4 s (min) minimum time between the end of data byte transfers. t 7 4 s (min) minimum time between byte transfers during a serial write. t 8 100 ns (min) cs hold time after sclk falling edge. read timing t 9 4 s (min) minimum time between read command (i.e., a write to communication register) and data read. t 10 4 s (min) minimum time between data byte transfers during a multibyte read. t 11 3 30 ns (min) data ac cess time after sclk rising edge following a write to the commun ications register. t 12 4 100 ns (max) bus relinquish time after falling edge of sclk. 10 ns (min) t 13 4 100 ns (max) bus relinquish time after rising edge of cs . 10 ns (min) notes 1 sample tested during initial release and after any redesign or process change that may affect this parameter. all input signals are specified with tr = tf = 5 ns (10% to 90%) and timed from a voltage level of 1.6 v. 2 see timing diagram below and serial interface section of this data sheet. 3 measured with the load circuit in load circuit for timing specifications and defined as the time required for the output to cross 0.8 v or 2.4 v. 4 derived from the measured time taken by the data outputs to change 0.5 v when loaded with the circuit in load circuit for timin g specifications. the measured number is then extrapolated back to remove the effects of charging or discharging the 50 pf capacitor. this means that the time quoted in the timing characteristics is the true bus relinquish time of the part and is independent of the bus loading. specifications subject to change without notice. 200 a 1.6ma i ol c l 50pf to output pin 2.1v i oh figure 1. load circuit for timing specifications t 5 t 4 cs sclk din a4 a3 a2 a1 a0 db7 most significant byte 1 db0 db7 db0 least significant byte 00 command byte t 1 t 2 t 3 t 6 t 7 t 8 figure 2. serial write timing cs sclk din a4 a3 a2 a1 a0 000 t 1 t 10 dout db7 most significant byte least significant byte command byte db0 db7 db0 t 13 t 12 t 9 t 11 t 11 figure 3. serial read timing (av dd = dv dd = 5 v 5%, agnd = dgnd = 0 v, on-chip reference, clkin = 3.579545 mhz xtal, t min to t max = ?0 c to +85 c, unless otherwise noted.)
rev. 0 ade7756 C6C caution esd (electrostatic discharge) sensitive device. electrostatic charges as high as 4000 v readily accumulate on the human body and test equipment and can discharge without detection. although the ade7756 features proprietary esd protection circuitry, permanent damage may occur on devices subjected to high-energy electrostatic discharges. therefore, proper esd precautions are recommended to avoid performance degradation or loss of functionality. warning! esd sensitive device absolute maximum ratings * (t a = 25 c unless otherwise noted) av dd to agnd . . . . . . . . . . . . . . . . . . . . . . C0.3 v to +7 v dv dd to dgnd . . . . . . . . . . . . . . . . . . . . . . C0.3 v to +7 v dv dd to av dd . . . . . . . . . . . . . . . . . . . . . . C0.3 v to +0.3 v analog input voltage to agnd v 1p , v 1n , v 2p and v 2n . . . . . . . . . . . . . . . . . . C6 v to +6 v reference input voltage to agnd . . . C0.3 v to av dd + 0.3 v digital input voltage to dgnd . . . C0.3 v to dv dd + 0.3 v digital output voltage to dgnd . . . C0.3 v to dv dd + 0.3 v operating temperature range industrial (a, b versions) . . . . . . . . . . . . C40 c to +85 c storage temperature range . . . . . . . . . . . C65 c to +150 c junction temperature . . . . . . . . . . . . . . . . . . . . . . . . . 150 c 20-lead plastic dip, power dissipation . . . . . . . . . 450 mw ja thermal impedance . . . . . . . . . . . . . . . . . . . . 105 c/w lead temperature, (soldering 10 sec) . . . . . . . . . . . 260 c 20-lead ssop, power dissipation . . . . . . . . . . . . . 450 mw ja thermal impedance . . . . . . . . . . . . . . . . . . . . 112 c/w lead temperature, soldering vapor phase (60 sec) . . . . . . . . . . . . . . . . . . . . . . 215 c infrared (15 sec) . . . . . . . . . . . . . . . . . . . . . . . . . 220 c * stresses above those listed under absolute maximum ratings may cause perma- nent damage to the device. this is a stress rating only; functional operation of the device at these or any other conditions above those listed in the operational sections of this specification is not implied. exposure to absolute maximum rating conditions for extended periods may affect device reliability. ordering guide model package description package option ade7756an plastic dip n-20 ade7756bn plastic dip n-20 ade7756ars shrink small outline package in tubes rs-20 ade7756arsrl shrink small outline package in tubes rs-20 ade7756brs shrink small outline package in tubes rs-20 ade7756brsrl shrink small outline package in reel rs-20 eval-ade7756eb ade7756 evaluation board ADE7756AN-REF ade7756 reference design pin configuration dip and ssop packages top view (not to scale) 20 19 18 17 16 15 14 13 12 11 1 2 3 4 5 6 7 8 9 10 ade7756 dgnd ref in/out agnd dv dd av dd v1p v2p v2n v1n cf zx sag dout sclk cs irq clkin clkout reset din
rev. 0 ade7756 C7C pin function descriptions pin no. mnemonic description 1 reset reset pin for the ade7756. a logic low on this pin will hold the adcs and digital circuitry (including the serial interface) in a reset condition. 2dv dd digital power supply. this pin provides the supply voltage for the digital circuitry in the ade7756. the supply voltage should be maintained at 5 v 5% for specified operation. this pin should be decoupled to dgnd with a 10 f capacitor in parallel with a ceramic 100 nf capacitor. 3av dd analog power supply. this pin provides the supply voltage for the analog circuitry in the ade7756. the supply should be maintained at 5 v 5% for specified operation. every effort should be made to minimize power supply ripple and noise at this pin by the use of proper decoupling. the typical per- formance graphs in this data sheet show the power supply rejection performance. this pin should be decoupled to agnd with a 10 f capacitor in parallel with a ceramic 100 nf capacitor. 4, 5 v1p, v1n analog inputs for channel 1. this channel is intended for use with the current transducer. these inputs are fully differential voltage inputs with maximum diffe rential input signal levels of 1 v, 0.5 v and 0.25 v, depending on the full-scale selection. see analog inputs section. channel 1 also has a pga with gain selections of 1, 2, 4, 8, or 16. the maximum signal level at these pins with respect to agnd is 1 v. both inputs have internal esd protection circuitry and in addition an overvoltage of 6 v can be sustained on these inputs without risk of permanent damage. 6, 7 v2n, v2p analog inputs for channel 2. this channel is intended for use with the voltage transducer. these inputs are fully differential voltage inputs with a maximum differential signal level of 1 v. channel 2 also has a pga with gain selections of 1, 2, 4, 8, or 16. the maximum signal level at these pins with respect to agnd is 1 v. both inputs have internal esd protection circuitry, and an overvoltage of 6 v can be sustained on these inputs without risk of permanent damage. 8 agnd this pin provides the ground reference for the analog circuitry in the ade7756, i.e., adcs and refer- ence. this pin should be tied to the an alog ground plane or the quietest ground r eference in the system. this quiet ground reference should be used for all analog circuitry, e.g., antialiasing filters, current and voltage transducers, etc. in order to keep ground noise around the ade7756 to a minimum, the quiet ground plane should only be connected to the digital ground plane at one point. it is acceptable to place the entire device on the analog ground planesee applications information section. 9 ref in/out this pin provides access to the on-chip voltage reference. the on-chip reference has a nominal value of 2.4 v 8% and a typical temperature coefficient of 20 ppm/ c. an external reference source may also be connected at this pin. in either case this pin should be decoupled to agnd with a 1 f ceramic capacitor. 10 dgnd this provides the ground reference for the digital circuitry in the ade7756, i.e., multiplier, filters, and digital-to-frequency converter. because the digital return currents in the ade7756 are small, it is acceptable to connect this pin to the analog ground plane of the systemsee applications information section. however, high bus capacitance on the dout pin may result in noisy digital current which could affect performance. 11 cf calibration frequency logic output. the cf logic output gives active power information. this out- put is intended to be used for operational and calibration purposes. the full-scale output frequency can be adjusted by writing to the cfdiv registersee energy to frequency conversion section . 12 zx voltage waveform (channel 2) zero crossing output. this output toggles logic high and low at the zero crossing of the differential signal on channel 2see zero crossing detection section. 13 sag this open drain logic output goes active low when either no zero crossings are detected or a low volt- age threshold (channel 2) is crossed for a specified duration. see line voltage sag detection section. 14 irq interrupt request output. this is an active low open drain logic output. maskable interrupts include: active energy register roll-over, active energy register at half level, and arrivals of new waveform samplessee interrupts section. 15 clkin master clock for adcs and digital signal processing. an external clock can be provided at this logic input. alternatively, a parallel resonant at crystal can be connected across clkin and clkout to provide a clock source for the ade7756. the clock frequency for specified operation is 3.579545 mhz. ceramic load capacitors of between 22 pf and 33 pf should be used with the gate oscillator circuit. refer to crystal manufacturers data sheet for load capacitance requirements. 16 clkout a crystal can be connected across this pin and clkin as described above to provide a clock source for the ade7756. the clkout pin can drive one cmos load when either an external clock is supplied at clkin or a crystal is being used.
rev. 0 ade7756 C8C pin no. mnemonic description 17 cs chip select. part of the 4-wire spi serial interface. this active low logic input allows the ade7756 to share the serial bus with several other devicessee serial interface section. 18 sclk serial clock input for the synchronous serial interface. all serial data transfers are synchronized to this clock. see serial interface section. the sclk has a schmitt-trigger input for use with a clock source that has a slow edge transition time, e.g., opto-isolator outputs. 19 dout data output for the serial interface. data is shifted out at this pin on the rising edge of sclk. this logic output is normally in a high impedance state unless it is driving data onto the serial data bus see serial interface section. 20 din data input for the serial interface. data is shifted in at this pin on the falling edge of sclksee serial interface section. terminology measurement error the error associated with the energy measurement made by the ade7756 is defined by the following formula: percentage error = energy by ade true energy true energy registered 7756 100 C % ? ? ? ? ? ? phase error between channels the hpf (high-pass filter) in channel 1 has a phase lead response. to offset this phase response and equalize the phase response between channels, a phase correction network is also placed in channel 1. the phase correction network ensures a phase match between channel 1 (current) and channel 2 (volt- age) to within 0.1 over a range of 45 hz to 65 hz and 0.2 over a range 40 hz to 1 khz. power supply rejection this quantifies the ade7756 measurement error as a percent- age of reading when the power supplies are varied. for the ac psr measurement, a reading at nominal supplies (5 v) is taken. a second reading is obtained with the same input signal levels when an ac (175 mv rms/120 hz) signal is introduced onto the supplies. any error introduced by this ac signal is expressed as a percentage of readingsee measurement error definition above. for the dc psr measurement, a reading at nominal supplies (5 v) is taken. a second reading is obtained with the same input signal levels when the supplies are varied 5%. any error intro- duced is again expressed as a percentage of reading. adc offset error this refers to the dc offset associated with the analog inputs to the adcs. it means that with the analog inputs connected to agnd the adcs still see a dc analog input signal. the magni- tude of the offset depends on the gain and input range selection see typical performance characteristics. however, when hpf1 is switched on the offset is removed from channel 1 (current) and the power calculation is not affected by this offset. the offsets may be removed by performing an offset calibrationsee analog inputs section. gain error the gain error in the ade7756 adcs is defined as the differ- ence between the measured adc output code (minus the offset) and the ideal output codesee channel 1 adc and channel 2 adc section. it is measured for each of the input ranges on channel 1 (1 v, 0.5 v and 0.25 v ). the difference is expressed as a percentage of the ideal code. gain error match the gain error match is defined as the gain error (minus the offset) obtained when switching between a gain of 1 (for each of the input ranges) and a gain of 2, 4, 8, or 16. it is expressed as a percentage of the output adc code obtained under a gain of 1. this gives the gain error observed when the gain selection is changed from 1 to 2, 4, 8, or 16.
rev. 0 C9C typical performance characteristics ade7756 amps 0.01 % error ?.50 ?.40 ?.30 ?.20 ?.10 0 0.10 0.20 0.30 0.40 0.50 0.10 1.0 10.0 100.0 pf = 1 gain = 1 on-chip reference ?0 c +25 c +85 c tpc 1. error as a % of reading (power factor = 1, internal reference, gain = 1) amps 0.01 % error 0.50 0.40 0.30 0.20 0.10 0 0.10 0.20 0.30 0.40 0.50 0.10 1.0 10.0 100.0 pf = 1 gain = 2 on-chip reference 40 c +25 c +85 c tpc 2. error as a % of reading (power factor = 1, internal reference, gain = 2) amps 0.01 % error 0.50 0.40 0.30 0.20 0.10 0 0.10 0.20 0.30 0.40 0.50 0.10 1.0 10.0 100.0 pf = 1 gain = 4 on-chip reference 40 c +25 c +85 c tpc 3. error as a % of reading (power factor = 1, internal reference, gain = 4) amps 0.01 % error 0.50 0.40 0.30 0.20 0.10 0 0.10 0.20 0.30 0.40 0.50 0.10 1.0 10.0 100.0 pf = 0.5 gain = 1 on-chip reference 40 c, pf = 0.5 +25 c, pf = 0.5 +85 c, pf = 0.5 +25 c, pf = 1.0 tpc 4. e rror as a % of reading (power factor = 0.5, internal reference, gain = 1) amps 0.01 % error 0.50 0.40 0.30 0.20 0.10 0 0.10 0.20 0.30 0.40 0.50 0.10 1.0 10.0 100.0 pf = 0.5 gain = 2 on-chip reference 40 c, pf = 0.5 +25 c, pf = 0.5 +85 c, pf = 0.5 +25 c, pf = 1.0 tpc 5. e rror as a % of reading (power factor = 0.5, inte rnal reference, gain = 2) amps 0.01 % error 0.50 0.40 0.30 0.20 0.10 0 0.10 0.20 0.30 0.40 0.50 0.10 1.0 10.0 100.0 pf = 0.5 gain = 4 on-chip reference 40 c, pf = 0.5 +25 c, pf = 0.5 +85 c, pf = 0.5 +25 c, pf = 1.0 tpc 6. error as a % of reading (power factor = 0.5, internal reference, gain = 4)
rev. 0 ade7756 C10C amps 0.01 % error 0.50 0.40 0.30 0.20 0.10 0 0.10 0.20 0.30 0.40 0.50 0.10 1.0 10.0 100.0 pf = 1 gain = 8 on-chip reference 40 c +25 c +85 c tpc 7. error as a % of reading (power factor = 1, internal reference, gain = 8) amps 0.01 % error 0.50 0.40 0.30 0.20 0.10 0 0.10 0.20 0.30 0.40 0.50 0.10 1.0 10.0 100.0 pf = 1 gain = 16 on-chip reference 40 c +25 c +85 c tpc 8. error as a % of reading (power factor = 1, internal reference, gain = 16) amps 0.01 % error 0.50 0.40 0.30 0.20 0.10 0 0.10 0.20 0.30 0.40 0.50 0.10 1.0 10.0 100.0 pf = 1 gain = 1 external reference 40 c +25 c +85 c tpc 9. error as a % of reading (power factor = 1, external reference, gain = 1) amps 0.01 % error 0.50 0.40 0.30 0.20 0.10 0 0.10 0.20 0.30 0.40 0.50 0.10 1.0 10.0 100.0 pf = 0.5 gain = 8 on-chip reference 40 c, pf = 0.5 +25 c, pf = 0.5 +85 c, pf = 0.5 +25 c, pf = 1.0 tpc 10. error as a % of reading (power factor = 0.5, internal reference, gain = 8) amps 0.01 % error 0.50 0.40 0.30 0.20 0.10 0 0.10 0.20 0.30 0.40 0.50 0.10 1.0 10.0 100.0 pf = 0.5 gain = 16 on-chip reference 40 c, pf = 0.5 +25 c, pf = 0.5 +85 c, pf = 0.5 +25 c, pf = 1.0 tpc 11. error as a % of reading (power factor = 0.5, internal reference, gain = 16) amps 0.01 % error 0.50 0.40 0.30 0.20 0.10 0 0.10 0.20 0.30 0.40 0.50 0.10 1.0 10.0 100.0 pf = 1 gain = 2 external reference 40 c +85 c +25 c tpc 12. error as a % of reading (power factor = 1, external reference, gain = 2)
rev. 0 ade7756 C11C 33nf 1k rb rb 1k 33nf 33nf 1k 33nf 1k 1m 100nf 10 f av dd dv dd reset 10 f 40a to 40ma v dd 100nf 10 f v1p v1n v2n v2p ref in/out dout sclk cs clkout clkin irq din sag zx cf agnd dgnd 22pf to frequency counter u3 not connected to spi bus (used only for calibration) 110v 1 2 4 8 16 15.8 7.5 4.0 2.0 1.0 gain(ch1) ct turn ratio = 1800:1 channel 2 gain = 4 rb u1 ade7756 100nf y1 3.58mhz 22pf ps2501-1 tpc 13. test circuit for performance curves amps 0.01 % error 0.50 0.40 0.30 0.20 0.10 0 0.10 0.20 0.30 0.40 0.50 0.10 1.0 10.0 100.0 5.25v 4.75v 5.0v tpc 14. psr with internal reference frequency hz 45 % error 0.6 50 55 60 pf = 1 0.4 0.2 0 0.2 0.4 0.6 0.8 65 70 75 pf = 0.5 ,3+)' 

  4   
(
: amps 0.01 % error 0.50 0.40 0.30 0.20 0.10 0 0.10 0.20 0.30 0.40 0.50 0.10 1.0 10.0 100.0 5.25v 4.75v 5.0v tpc 16. psr with external reference
rev. 0 ade7756 C12C analog inputs the ade7756 has two fully differential voltage input channels. the maximum differential input voltage for each input pair (v1p/v1n and v2p/v2n) is 1 v. in addition, the maximum signal level on each analog input (v1p, v1n, v2p, and v2n) is also 1 v with respect to agnd. each analog input channel has a pga (programmable gain amplifier) with possible gain selections of 1, 2, 4, 8, and 16. the gain selections are made by writing to the gain regis- tersee figure 5. bits 0 to 2 select the gain for the pga in channel 1 and the gain selection for the pga in channel 2 is made via bits 5 to 7. figure 4 shows how a gain selection for channel 1 is made using the gain register. v1p v1n v in gain[7:0] ch1os[7:0] gain (k) selection offset adjust ( 32mv) k v in figure 4. pga in channel 1 in addition to the pga, channel 1 also has a full-scale input range selection for the adc. the adc analog input range selec- tion is also made using the gain registersee figure 5. as mentioned previously, the maximum differential input voltage is 1 v however, by using bits 3 and 4 in the g ain register, the maximum adc input voltage can be set to 1 v, 0.5 v, or 0.25 v. this is achieved by adjusting the adc referencesee reference circuit section. table i summarizes the maximum differ ential input signal level on channel 1 for the various adc range and gain selections. table i. maximum input signal levels for channel 1 max signal adc input range selection channel 1 1 v 0.5 v 0.25 v 1 v gain = 1 0.5 v gain = 2 gain = 1 0.25 v gain = 4 gain = 2 gain = 1 0.125 v gain = 8 gain = 4 gain = 2 0.0625 v gain = 16 gain = 8 gain = 4 0.0313 v gain = 16 gain = 8 0.0156 v gain = 16 gain register * quruququhuquu qbueq quhuqu eeeu5uur eeru5uuh ereu5uup erru5uu% reeu5uurc * register contents show power-on defaults pga 1 gain select 000 = x1 001 = x2 010 = x4 011 = x8 100 = x16 channel 1 fs select 00 = 1v 01 = 0.5v 10 = 0.25v 00000000 76543210 figure 5. analog gain register it is also possible to adjust offset errors on channel 1 and channel 2 by writing to the offset correction registers (ch1os and ch2os respectively). these registers allow channel offsets in the range 20 mv to 60 mv (depending on the gain setting) to be removed. note that it is not necessary to perform an offset correc- tion in an energy measurement application if hpf1 in channel 1 is switched on. figure 6 shows the effect of offsets on the real power calculation. as can be seen from figure 6, an offset on channel 1 and channel 2 will contribute a dc component after multiplication. since this dc component is extracted by lpf2 to generate the active (real) power information, the offsets will have contributed an error to the active power calculation. this problem is easily avoided by enabling hpf1 in channel 1. by removing the offset from at least one channel, no error compo- nent can be generated at dc by the multiplication. error terms at cos( t) are removed by lpf2 and by integration of the active power signal in the active energy register (aenergy[39:0]). see energy calculation section. v i 2 frequency rads/sec 2 0 v os i os v os i i os v dc component (including error term) is extracted by the lpf for real power calculation figure 6. effect of channel offsets on the real power calculation
rev. 0 ade7756 C13C the contents of the offset correction registers are 6-bit, sign and magnitude coded. the weighting of the lsb size depends on the gain setting, i.e., 1, 2, 4, 8, or 16. table ii below shows the correctable offset span for each of the gain settings and the lsb weight (mv) for the offset correction registers. the maxi mum value that can be w ritten to the offset correction registers is 31 decimalsee figure 7. table ii. offset correction range gain correctable span lsb size 1 60 mv 1.88 mv/lsb 2 40 mv 1.25 mv/lsb 4 25 mv 0.78 mv/lsb 8 23 mv 0.72 mv/lsb 16 20 mv 0.63 mv/lsb figure 7 shows the relationship between the of fset correction register contents and the offset (mv) on the analog inputs for a gain setting of one. in order to perform an offset adjustment, the analog inputs should be first connected to agnd. there should be no signal on either channel 1 or channel 2. a read from channel 1 or channel 2 using the waveform register will give an indication of the offset in the channel. this offset can be canceled by writing an equal and opposite offset value to the relevant offset register. the offset correction can be confirmed by performing another read. note when adjusting the offset of channel 1, one needs to ensure the hpf has been disabled in the mode register. ch1os[7:0] 00h 1fh 3fh +60mv 60mv 0mv offset adjust 00 11, 1111b sign + 5 bits sign + 5 bits 00 01, 1111b figure 7. channel offset correction range (gain = 1) zero crossing detection the ade7756 has a zero crossing detection circuit on channel 2. this zero crossing is used to produce an external zero cross signal (zx) and it is also used in the calibration modesee energy calibration section. the zero crossing signal is also used to initiate a temperature measurement on the ade7756see temperature measurement section. figure 8 shows how the zero cross signal is generated from the output of lpf1. v2 lpf1 zx 21.04 @ 60hz 0.93 1.0 v2p v2n adc 2 1 x1, x2, x4, x8, x16 reference gain[7:5] v2 to multiplier 63% to +63% fs lpf1 f 3db = 156hz zx zero cross pga2 figure 8. zero cross detection on channel 2 the zx signal will go logic high on a positive going zero crossing and logic low on a negative going zero crossing on channel 2. the zero crossing signal zx is generated from the output of lpf1. lpf1 has a single pole at 156 hz (at clkin = 3.579545 mhz). as a result there will be a phase lag between the analog input signal v2 and the output of lpf1. the phase response of this filter is shown in the channel 2 sampling section of this data sheet. the phase lag response of lpf1 results in a time delay of approximately 0.97 ms (@ 60 hz) between the zero crossing on the analog inputs of channel 2 and the rising or falling edge of zx. the zero crossing detection also has an associated time-out register zxtout. this unsigned, 12-bit register is decre- mented (1 lsb) every 128/clkin seconds. the register is reset to its user-programmed full-scale value every time a zero crossing on channel 2 is detected. the default power-on value in this register is fffh. if the register decrements to zero before a zero crossing is detected, and the dissag bit in the mode register is logic 0, the sag pin will go active low. the absence of a zero crossing is also indicated on the irq output if the sag enable bit in the interrupt enable register is set to logic 1. irrespective of the enable bit setting, the sag flag in the inter- rupt status register is always set when the zxtout register is decremented to zerosee ade7756 interrupts section. the zero-cross time-out register can be written/read by the user and has an address of 0ehsee serial interface section. the resolution of the register is 128/clkin seconds per lsb. thus the maximum delay for an interrupt is 0.15 second (128/ clkin 2 12 ).
rev. 0 ade7756 C14C line voltage sag detection in addition to the detection of the loss of the line voltage signal (zero crossing), the ade7756 can also be programmed to detect when the absolute value of the line voltage drops below a certain peak value, for a number of half-cycles. this condition is illus- trated in figure 9. sagcyc[7:0] = 06h 6 half-cycles saglvl[7:0] full scale channel 2 sag sag reset high when channel 2 exceeds saglvl[7:0] figure 9. ade7756 sag detection figure 9 shows the line voltage fall below a threshold that is set in the sag level register (saglvl[7:0]) for nine half-cycles. since the sag cycle register (sagcyc[7:0]) contains 06h, the sag pin will go active low at the end of the sixth half-cycle for which the line voltage falls below the threshold, if the dissag bit in the mode register is logic 0. as is the case when zero- crossings are no longer detected, the sag event is also recorded by setting the sag flag in the interrupt status register. if the sag enable bit is set to logic 1, the irq logic output will go active lowsee ade7756 interrupts section. the sag pin will go logic high again when the absolute value of the signal on channel 2 exceeds the sag level set in the sag level register. this is shown in figure 9 when the sag pin goes high during the tenth half-cycle from the time when the signal on channel 2 first dropped below the threshold level. sag level set the contents of the sag level register (1 byte) are compared to the absolute value of the most significant byte output from lpf1, after it is shifted left by one bit. thus for example the nominal maximum code from lpf1 with a full scale signal on channel 2 is 1c396h or (0001, 1100, 0011, 1001, 0110b)see channel 2 sampling section. shifting one bit left will give 0011, 1000, 0111, 0010, 1100b or 3872ch. therefore writing 38h to the sag level register will put the sag detection level at full scale. writing 00h will put the sag detection level at zero. the sag level register is compared to the most significant byte of a waveform sample after the shift left and detection is made when the contents of the sag level register are greater. power supply monitor the ade7756 also contains an on-chip power supply monitor. the analog supply (av dd ) is continuously monitored by the ade7756. if the supply is less than 4 v 5%, the ade7756 will be inactive, i.e., no energy will accumulate regardless of the input signals at channel 1 and channel 2. this is useful to ensure correct device operation at power-up and during power-down. the power supply monitor has built-in hysteresis and filtering. this gives a high degree of immunity to false triggering due to noisy supplies. time av dd 0v 4v 5v ade7756 power-on reset inactive active sag inactive figure 10. on-chip power supply monitor as can be seen from figure 10, the trigger level is nominally set at 4 v. the tolerance on this trigger level is about 5%. the sag pin can also be used as a power supply monitor input to the mcu. the sag pin will go logic low when the ade7756 is reset. the power supply and decoupling for the part should be such that the ripple at av dd does not exceed 5 v 5% as specified for normal operation.
rev. 0 ade7756 C15C interrupts interrupts are managed through the interrupt status register (status[7:0]) and the interrupt enable register (irqen[7:0]). when an interrupt event occurs in the ade7756, the corre- sponding flag in the status register is set to a logic 1see interrupt status register. if the enable bit for this interrupt in the interrupt enable register is logic 1, the irq logic output goes active low. the flag bits in the status register are set irre- spective of the state of the enable bits. in order to determine the source of the interrupt, the system mas- ter (mcu) should perform a read from the status register with reset (rstatus[7:0]). this is achieved by carrying out a read from address 05h. the irq output will go logic high on comple- tion of the interrupt status register read commandsee interrupt timing section. when carrying out a read with reset the ade7756 is desi gned to ensure that no interrupt events are m issed. if an interrupt event occurs just as the status register is being read, the event will not be lost and the irq logic output is guaran teed to go high for the duration of the interrupt status register data transfer before going logic low again to indicate the pending interrupt. see the next section for a more detailed description. using the ade7756 interrupts with an mcu shown in figure 11 is a timing diagram that shows a sug- gested implementation of ade7756 interrupt management using an mcu. at time t 1 the irq line will go active low indi- cating that one or more interrupt events have occurred in the ade7756. the irq logic output should be tied to a negative edge-triggered external interrupt on the mcu. on detection of the negative edge, the mcu should be configured to start execut- ing its interrupt service routine (isr). on entering the isr, all interrupts should be disabled using the global interrupt enable bit. at this point the mcu external interrupt flag can be cleared in order to capture interrupt events that occur during the current isr. when the mcu interrupt flag is cleared a read from the status register with reset is carried out. this will cause the irq line to be reset logic high (t 2 )see interrupt timing section. the status register contents are used to determine the source of the interrupt(s) and hence the appropriate action to be taken. if a subsequent interrupt event occurs during the isr, that event will be recorded by the mcu external interrupt flag being set again (t 3 ). on returning from the isr, the global interrupt mask will be cleared (same instruction cycle) and the external inte rrupt flag will cause the mcu to jump to its isr once again. this will ensure that the mcu does not miss any external interrupts. interrupt timing the serial interface section should be reviewed first, before reviewing the interrupt timing. as previously described, when the irq output goes low the mcu isr must read the interrupt status register in order to determine the source of the interrupt. when reading the status register contents, the irq output is set high on the last falling edge of sclk of the first byte transfer (read interrupt status register command). the irq output is held high until the last bit of the next 8-bit transfer is shifted out (interrupt status register contents). see figure 12. if an inter- rupt is pending at this time, the irq output will go low again. if no interrupt is pending the irq output will stay high. irq jump to isr global interrupt mask set clear mcu interrupt flag read status with reset (05h) isr action (based on status contents) isr return global interrupt mask reset mcu interrupt flag set jump to isr mcu program sequence t 3 t 2 t 1 figure 11. interrupt management sclk din dout irq t 9 t 1 t 11 t 11 read status register command status register contents db7 cs 000 0 0101 db0 figure 12. interrupt timing
rev. 0 ade7756 C16C temperature measurement ade7756 also includes an on-chip temperature sensor. a tem- perature measurement can be made by setting bit 5 in the mode register. when bit 5 is set logic high in the mode register, the ade7756 will initiate a temperature measurement on the next zero crossing. when the zero crossing on channel 2 is detected, the voltage output from the temperature sensing circuit is con- nected to adc1 (channel 1) for digitizing. the resultant code is processed and placed in the temperature register (temp[7:0]) approximately 26 s later (24 clkin cycles). if enabled in the interrupt enable register (bit 5), the irq output will go active low when the temperature conversion is finished. please note that temperature conversion will introduce a small amount of noise in the energy calculation. if temperature conversion is performed frequently (e.g., multiple times per second), a noticeable error will accumulate in the resulting energy calcu- lation over time. the contents of the temperature register are signed (twos complement) with a resolution of approximately 1 lsb/ c. the temperature register will produce a code of 00h when the ambi- ent temperature is approximately 70 csee figure 13. the temperature measurement is uncalibrated in the ade7756 and has an offset tolerance that could be as high as 20 c. temperature c 60 120 temperature register 20 0 20 40 60 80 100 120 40 110 80 60 40 20 0 20 40 five parts apgain = 00h figure 13. temperature register analog-to-digital conversion the analog-to-digital conversion in the ade7756 is carried out using two second-order sigma-delta adcs. the block diagram in figure 14 shows a first-order (for simplicity) sigma-delta adc. the converter is made up of two parts, first the sigma- delta modulator and second the digital low-pass filter. a sigma -delta modulator converts the input s ignal into a con- tinuous serial stream of 1s and 0s at a rate determined by the sampling clock. in the ade7756 the sampling clock is equal to clkin/4. the 1-bit dac in the feedback loop is driven by the serial data stream. the dac output is subtracted from the input signal. if the loop gain is high enough, the average value of the dac output (and therefore the bit stream) will approach that of the input signal level. for any given input value in a single sampling interval, the data from the 1-bit adc is virtually mean- ingless. only when a large number of samples are averaged, will a meaningful result be obtained. this averaging is carried out in the second part of the adc, the digital low-pass filter. by aver- aging a large number of bits from the modulator the low-pass filter can produce 20-bit data words that are proportional to the input signal level. the sigma-delta converter uses two techniques to achieve high resolution from what is essentially a 1-bit conversion technique. the first is oversampling. by oversampling we mean that the signal is sampled at a rate (frequency) that is many times higher than the bandwidth of interest. for example, the sampling rate in the ade7756 is clkin/4 (894 khz) and the band of interest is 40 hz to 2 khz. oversampling has the effect of spreading the quantization noise (noise due to sampling) over a wider bandwidth. with the noise spread more thinly over a wider bandwidth, the quantization noise in the band of interest is loweredsee figure 15. however oversampling alone is not an efficient enough method to improve the signal to noise ratio (snr) in the band of interest. for example, an oversampling ratio of 4 is required just to increase the snr by only 6 db (1 bit). to keep the oversampling ratio at a reasonable level, it is possible to shape the quantization noise so that the majority of the noise lies at the higher frequencies. this is what happens in the sigma-delta modulator, the noise is shaped by the integrator which has a high-pass-type response for the quantization noise. the result is that most of the noise is at the higher frequencies where it can be removed by the digital low-pass filter. this noise shaping is also shown in figure 15. v ref 10100101 digital low- pass filter mclk/4 integrator 1-bit dac latched comparator r c analog low- pass filter 1 20 figure 14. first order sigma-delta ( - ? ) adc signal frequency khz 0 447 894 2 sampling frequency shaped noise antialias filter (rc) digital filter noise signal 0 447 894 2 high resolution output from digital lpf noise frequency khz figure 15. noise reduction due to oversampling and noise shaping in the analog modulator
rev. 0 ade7756 C17C antialias filter figure 21 also shows an analog low-pass filter (rc) on the input to the modulator. this filter is present to prevent aliasing. alias- ing is an artifact of all sampled systems. figure 16 illustrates the effect, frequency components (arrows shown in black) above half the sampling frequency (also known as the nyquist frequency, i.e., 447 khz) is imaged or folded back down below 447 khz (arrows shown in grey). this will happen with all adcs no matter what the architecture is. in the example shown it can be seen that only frequencies near the sampling frequency, i.e., 894 khz, will move into the band of interest for metering, i.e., 40 hzC2 khz. this fact will allow us to use a very simple lpf (low-pass filter) to attenuate these high frequencies (near 900 khz) and so prevent distortion in the band of interest. a simple rc filter (single-pole) with a corner frequency of 10 khz will produce an attenuation of approxi- mately 40 dbs at 894 khzsee figure 15. this is sufficient to eliminate the effects of aliasing. frequency khz aliasing effects 0 447 894 2 image frequencies sampling frequency figure 16. adc and signal processing in channel 1 adc transfer function below is an expression that relates the output of the lpf in the sigma-delta adc to the analog input signal level. both adcs in the ade7756 are designed to produce the same output code for the same input signal level. code adc v v in ref (). , = 1 512 262 144 therefore, with a full-scale signal on the input of 1 v, and an internal reference of 2.4 v, the adc output code is nominally 165,151 or 2851fh. the maximum code from the adc is 262,144, which is equivalent to an input signal level of 1.6 v. however, for specified performance it is not recommended that the full-scale input signal level of 1 v be exceeded. reference circuit shown in figure 17 is a simpl ified version of the reference output circuitry. the nominal reference voltage at the ref in/out pin is 2.42 v. this is the reference voltage used for the adcs in the ade7756. however, channel 1 has three input range selections that are selected by dividing down the reference value used for the adc in channel 1. the reference value used for channel 1 is divided down to 1/2 and 1/4 of the nominal value by using an internal resistor divider as shown in figure 17. 1.7k ptat ref in/out maximum load = 10 a 2.42v 12.5k 12.5k 12.5k 12.5k reference input to adc channel 1 (range select) 2.42v, 1.21v, 0.6v 2.5v output impedance 4k 60 a figure 17. reference circuit output the ref in/out pin can be overdriven by an external source, e.g., an external 2.5 v reference. note that the nominal refer- ence value supplied to the adcs is now 2.5 v, not 2.42 v. this has the effect of increasing the nominal analog input signal range by 2.5/2.42 100% = 3%, or from 1 v to 1.03 v. the voltage of ade7756 reference drifts slightly with temperature see ade7756 specifications for the temperature coefficient specification (in ppm/ c). the value of the temperature drift varies from part to part. on a-grade parts, the maximum temperature drift is not guaranteed. since the reference is used for the adcs in both channel 1 and 2, any x% drift in the refer ence will result in 2x% deviation of the meter accuracy. the reference drift resulting from temperature changes is usually very small and it is typically much smaller than the drift of other components on a meter. however, if guaranteed temperature performance is needed, one needs to use an external voltage reference or to use b-grade parts. alternatively, the meter can be calibrated at multiple temperatures. real-time compensation can be easily achieved using the on the on-chip temperature sensor.
rev. 0 ade7756 C18C channel 1 adc figure 18 shows the adc and signal processing chain for chan- nel 1. in waveform sampling mode the adc outputs a signed twos complement 20-bit data word at a maximum of 27.9 ksps (clkin/128). the output of the adc can be scaled by 50% to perform an overall power calibration or to calibrate the adc out- put. while the adc outputs a 20-bit twos complement value, the maximum full-scale positive value from the adc is limited to 40000h (+262,144 decimal). the maximum full-scale negative value is limited to c0000h (C262,144 decimal). if the analog inputs are overranged, the adc output code will clamp at these values. with the specified full scale analog input signal of 1 v (or 0.5 v or 0.25 vsee analog inputs section) the adc will produce an output code which is approximately 63% of its full-scale value. this is illustrated in figure 18. the diagram in figure 15 shows a full-scale voltage signal being applied to the differential inputs v1p and v1n. the adc output swings between d7ae1h (C165,151) and 2851fh (+165,151). this is approximately 63% of the full-scale value 40000h (262,144). overranging the analog inputs with more than 1 v differential (0.5 or 0.25, depending on channel 1 full-scale selection) will cause the adc output to increase towards its full-scale value. however for specified opera- tion the differential signal on the analog inputs should not exceed the recommended value of 1.0 v. channel 1 adc gain adjust the adc gain in channel 1 can be adjusted by using the multi- plier and active power gain register (apgain[11:0]). the gain of the adc is adjusted by writing a twos complement 12-bit word to the active power gain register. following is 12 801hex 7ffhex x1, x2, x4, x8, x16 reference 2.42v, 1.21v, 0.6v apgain[11:0] v1 0v 00000h 40000h c0000h 2851fh d7ae1h +fs fs +63% fs 63% fs 00000h 2851fh +63% fs 63% fs d7ae1h +94.5% fs +31.5% fs 31.5% fs 94.5% fs 3c7aeh 1428fh ebd71h c3852h 000h 7ffh 801h analog input range adc output word range channel 1 (active power) calibration range to multiplier to waveform register waveform[23:0] 1 digital lpf 1v, 0.5v, 0.25v, 125mv, 62.5mv, 31.3mv, 15.6mv gain[4:3] multiplier hpf v1p v1n 1 sinc 3 20 adc gain[2:0] pga1 apgain[11:0] figure 18. adc and signal processing in channel 1 the expression that shows how the gain adjustment is related to the contents of the active power gain register. code adc apgain =+ ? ? ? ? ? ? ? ? ? ? ? ? 1 2 12 for example when 7ffh is written to the active power gain register the adc output is scaled up by 50%. 7ffh = 2047 deci- mal, 2047/2 12 = 0.5. similarly, 801h = C2047 decimal (signed twos complement) and adc output is scaled by C50%. these two examples are graphically illustrated in figure 18. channel 1 sampling the waveform samples may also be routed to the waveform register (mode[14:13] = 1, 0) to be read by the system master (mcu). in waveform sampling mode the wsmp bit (bit 3) in the interrupt enable register must also be set to logic 1. the active power and energy calculation will remain uninterrupted during waveform sampling. when in waveform sample mode, one of four output sample rates may be chosen by using bits 11 and 12 of the mode register (wavsel1, 0). the output sample rate may be 27.9 ksps, 14 ksps, 7 ksps or 3.5 kspssee mode register section. the interrupt request output irq signals a new sample availability by going active low. the timing is shown in figure 19. the 20-bit waveform samples are transferred from the ade7756 one byte (8 bits) at a time, with the most significant byte shifted out first. the 20-bit data word is right-justified and sign extended to 24 bits (three bytes)see serial interface section.
rev. 0 ade7756 C19C 0 0 0 01 hex irq din dout sclk sampling rate (27.9ksps, 14ksps, 7ksps or 3.5ksps) read from waveform channel 1 data 20 bits 16 s sign figure 19. waveform sampling channel 1 channel 2 adc channel 2 sampling in channel 2 waveform sampling mode (mode[14:13] = 1,1 and wsmp = 1) the adc output code scaling for channel 2 is the same as channel 1, i.e., the output swings between d7ae1h (C165,151) and 2851fh (+165,151)see adc channel 1 sec- tion. however, before being passed to the waveform register, the adc output is passed through a single-pole, low-pass filter with a cutoff frequency of 156 hz. the plots in figure 20 shows the magnitude and phase response of this filter. frequency hz 0 40 10 1 10 3 10 2 phase degrees 60 40 20 20 0 gain db (60hz, 21.04 ) (60hz, 0.6db) 80 figure 20. magnitude and phase response of lpf1 this has the effect of attenuating the signal. for example, if the line frequency is 60 hz, the signal at the output of lpf1 will be attenuated by 30%. |()| . C. hf hz hz db = + ? ? ? ? ? ? == 1 1 60 156 093 06 2 note that lpf1 does not affect the power calculation. the signal processing chain in channel 2 is illustrated in figure 21. unlike channel 1, channel 2 has only one analog input range (1 v differential). however, like channel 1, channel 2 does have a pga with gain selections of 1, 2, 4, 8, and 16. for energy measure- ment, the output of the adc is passed directly to the multiplier and is not filtered. an hpf is not required to remove any dc offset since it is only required to remove the offset from one chan- nel to eliminate errors due to offsets in the power calculation. when in waveform sample mode, one of four output sample rates can be chosen by using bits 11 and 12 of the mode regis- ter. the available output sample rates are 27.9 ksps, 14 ksps, 7 ksps or 3.5 kspssee mode register section. the interrupt request output irq signals a new sample availability by going active low. the timing is the same as that for channel 1 and is shown in figure 19. 1 63% to + 63% fs 60hz 1v, 0.5v, 0.25v, 0.125v, 0.0625v x1, x2, x4, x8, x16 gain[7:5] reference 2.42v v2 0v 2851fh d7ae1h +63% fs 63% fs +44% fs 44% fs 00000h 1c396h e3c6ah analog input range lpf output word range to multiplier to waveform register lpf1 v2p v2n adc2 pga2 v1 20 40000h +fs c0000h fs 60hz figure 21. adc and signal processing in channel 2
rev. 0 ade7756 C20C phase compensation when the hpf is disabled, the phase error between channel 1 and channel 2 is zero from dc to 3.5 khz. when hpf1 is enabled, channel 1 has a phase response illustrated in figures 23 and 24. also shown in figure 25 is the magnitude response of the filter. as can be seen from the plots, the phase response is almost zero from 45 hz to 1 khz. this is all that is required in typical energy measurement applications. however, despite being internally phase compensated the ade7756 m ust work with transducers that may have inherent phase errors. for example, a phase error of 0.1 to 0.3 is not uncommon for a ct (current transformer). these phase errors can vary from part to part and must be corrected in order to perform accurate power calculations. the errors associated with phase mismatch are particularly noticeable at low power factors. the ade7756 provides a means of digitally calibrating these small phase errors. the ade7756 allows a small time delay or time advance to be introduced into the signal processing chain in order to compensate for small phase errors. because the compensation is in time, this technique should only be used for small phase errors in the range of 0.1 to 0.5 . correcting large phase errors using a time shift technique can intro duce signifi- cant phase errors at higher harmonics. the phase calibration register (phcal[5:0]) is a twos comple- ment 6-bit signed register that can vary the time delay in the channel 2 signal path from C143 s to +143 s (clkin = 3.579545 mhz). one lsb is equivalent to 4.47 s. with a line frequency of 60 hz, this gives a phase resolution of 0.097 at the fundamental (i.e., 360 4.47 s 60 hz). figure 22 illustrates how the phase compensation is used to remove a 0.097 phase lead in channel 1 due to some external transducer. in order to cancel the lead (0.097 ) in channel 1, a phase lead must also be introduced into channel 2. the resolution of the phase adjustment allows the introduction of a phase lead of 0.097 . the phase lead is achieved by introducing a time advance into channel 2. a time advance of 4.47 s is made by writing C1 (3fh) to the time delay block, thus reducing the amount of time delay by 4.47 s. phcal[5:0] 143 s to +143 s channel 2 delay reduced by 4.47 s (0.097 lead at 60hz) 3fh in phcal[5:0] 0.097" 60hz v1 v1p v1n adc1 pga1 v1 hpf 20 v2 v2p v2n adc2 pga2 1 delay block 4.47 s/lsb 20 lpf2 v2 60hz v1 v2 111111 50 figure 22. phase calibration frequency hz 0.10 0 100 phase degrees 0.05 0 0.05 0.10 0.15 0.20 0.25 0.30 200 300 400 500 600 700 800 900 1000 figure 23. combined phase response of the hpf and phase compensation (10 hz to 1 khz) 0.10 40 phase degrees 0.05 0 0.05 0.10 0.15 0.20 0.25 0.30 45 50 55 60 65 70 figure 24. combined phase response of the hpf and phase compensation (40 hz to 70 hz) frequency hz 0.40 54 error % 0.30 0.20 0.10 0.00 0.10 0.20 0.30 0.40 56 58 60 62 64 68 figure 25. combined phase response of the hpf and phase compensation (deviation of gain in % from gain at 60 hz)
rev. 0 ade7756 C21C active power calculation electrical power is defined as the rate of energy flow from source to load. it is given by the product of the voltage and current wave- forms. the resulting waveform is called the instantaneous power signal and it is equal to the rate of energy flow at every instant of time. the unit of power is the watt or joules/sec. equation 3 gives an expression for the instantaneous power signal in an ac system. vt v t ( ) sin( ) = 2 (1) it i t ( ) sin( ) = 2 (2) where v = rms voltage, i = rms current. pt vt it p t vi vi t () () () ( ) C cos ( ) = = 2 (3) the average power over an integral number of line cycles (n) is given by the expression in equation 4. p nt p t dt vi nt == 1 0 () (4) where t is the line cycle period. and p is referred to as the active or real power. note that the active power is equal to the dc component of the instantaneous power signal p(t) in equation 3 , i.e., vi. this is the relationship used to calculate active power in the ade7756. the instantaneous power signal p(t) is generated by multiplying the current and voltage signals. the dc component of the instan- taneous power signal is then extracted by lpf2 (low-pass filter) to obtain the active power information. this process is graphi- cally illustrated in figure 26. since lpf2 does not have an ideal brick wall frequency responsesee figure 27the active power signal will have some ripple due to the instantaneous power signal. this ripple is sinusoidal and has a frequency equal to twice the line fr equency. since the ripple is sinusoidal in nature it will be rem oved when the active power signal is inte- grated to calculate energysee energy calculation section. voltage current instantaneous power signal active real power signal = v i 00000h 1999ah v. i. cccdh p(t) = v 1 v 1 cos(2 t) i(t) = 2 i sin( t) v(t) = 2 v sin( t) figure 26. active power calculation figure 28 shows the signal processing chain for the active power calculation in the ade7756. as explained, the active power is calculated by low-pass filtering the instantaneous power signal. frequency hz 24 1 db 20 3 10 30 100 12 16 8 4 0 figure 27. frequency response of lpf2 cccdh 00h hpf 20 20 lpf2 multiplier instantaneous power signal p(t) = 40%fs to +40%fs active power signal p i v current signal i(t) 1 voltage signal v(t) 1999ah (
$1  3 
- 3
 shown in figure 29 is the maximum code (hexadecimal) out- put range for the active power signal (lpf2). note that the output range changes, depending on the contents of the active power gain registersee channel 1 adc section. the mini- mum output range is given when the active power gain register contents are equal to 800h, and the maximum range is given by writing 7ffh to the active power gain register. this can be used to calibrate the active power (or energy) calculation in the ade7756. 00000h +20% fs 20% fs +30% fs +10% fs 10% fs 30% fs cccdh f3333h 000h 7ffh 800h channel 1 (active power) calibration range positive power output lpf2 6666h f999ah 1999ah e6666h apgain[11:0] negative power figure 29. active power calculation output range
rev. 0 ade7756 C22C energy calculation as stated earlier, power is defined as the rate of energy flow. this relationship can be expressed mathematically as equation 5. p de dt = (5) where p = power, and e = energy. conversely, energy is given as the integral of power. e pdt = (6) the ade7756 achieves the integration of the active power signal by continuously accumulating the active power signal in the 40-bit active energy register (aenergy[39:0]). this discrete time accumulation or summation is equivalent to integration in con- tinuous time. equation 7 expresses the relationship e p t dt lim p nt t t n = = ? ? ? ? ? ? = () ( ) 0 0 (7) where n is the discrete time sample number and t is the sample period. the discrete time sample period (t) for the accumulation regis- ter in the ade7756 is 1.1 s (4/clkin). as well as calculating the energy, this integration removes any sinusoidal components that may be in the active power signal. figure 30 shows a graphical representation of this discrete time integration or accumulation. the active power signal in the waveform register is continuously added to the active energy register. this addition is a signed addition, therefore negative energy will be subtracted from the active energy contents. apos [11:0] 4 clkin time nt wavefor register values t 23 0 aenergy[39:0] waveform register values are accumulated (integrated) in the active energy register active power signal p 20 lpf2 current channel voltage channel output lpf2 waveform [23:0] 39 0 11 0 figure 30. energy calculation as shown in figure 30, the active power signal is accumulated in a 40-bit signed register (aenergy[39:0]). the active power signal can be read from the waveform regis- ter by setting mode[14:13] = 0,0 and setting the wsmp bit (bit 3) in the interrupt enable register to 1. like the channel 1 and channel 2 waveform sampling modes, the waveform date is available at sample rates of 27.9 ksps, 14 ksps, 7 ksps or 3.5 kspssee figure 19. figure 31 shows this energy accumulation for full-scale signals (sinusoidal) on the analog inputs. the three curves displayed, illustrate the minimum period of time it takes the energy register to roll-over when the active power gain register contents are 3ffh, 000h and 800h. the active power gain register is used to carry out power calibration in the ade7756. as shown, the fastest integration time will occur when the active power gain register is set to maximum full scale, i.e., 3ffh. apgain = 800h apgain = 000h apgain = 3ffh 00,0000,0000h 7f,ffff,ffffh 80,0000,0000h 3f,ffff,ffffh 40,0000,0000h aenergy[39:0] time (seconds) 11.5s 23s 5.8s figure 31. energy register roll-over time for full-scale power (minimum and maximum power gain) note that the energy register contents will roll over to full-scale negative (80,0000,0000h) and continue increasing in value when the power or energy flow is positivesee figure 31. conversely, if the power is negative the energy register would underflow to full-scale positive (7f, ffff, ffffh) and continue decreasing in value. by using the interrupt enable register, the ade7756 can be configured to issue an interrupt ( irq ) when the active energy register is half-full (positive or negative) or when an over-/under- flow occurs. integration times under steady load as mentioned in the last section, the discrete time sample period (t) for the accumulation register is 1.1 s (4/clkin). with full-scale sinusoidal signals on the analog inputs and the active power gain register set to 000h, the average word value from lpf2 is cccdhsee figure 34. the maximum value that can be stored in the active energy register before it over- flows is 2 39 or 7f, ffff, ffffh. therefore the integration time under these conditions is calculated as follows: time f ffff ffffh cccdh s == 7 1 1 11 53 ,, .. seconds
rev. 0 ade7756 C23C power offset calibration the ade7756 also incorporates an active power offset regis- ter (apos[11:0]). this is a signed, twos complement, 12-bit register that can be used to remove offsets in the active power calculationsee figure 30. an offset may exist in the power calculation due to crosstalk between channels on the pcb or in the ic itself. the offset calibration will allow the contents of the active power register to be maintained at zero when no power is being consumed. sixteen lsbs (apos = 010h) written to the active power off- set register are equivalent to 1 lsb in the waveform sample register. assuming the average value outputs from lpf2 to store in the waveform register is cccdh (52,429 in decimal) when inputs on channels 1 and 2 are both at full scale. at C60 db down on channel 1 (1/1000 of the full-scale input), the average word value outputs from lpf2 is 52.429 (52,429/1,000). 1 lsb in the waveform register has a measurement error of 1/52.429 100% = 1.9% of the average value. the active power offset register has a resolution equal to 1/16 lsb of the waveform register, hence the power offset correction resolution is 0.12% (1.9%/16) at C60 db. energy-to-frequency conversion ade7756 also provides energy-to-frequency conversion for calibration purposes. after initial calibration at manufacture, the manufacturer or end customer will often verify the energy meter calibration. one convenient way to verify the meter calibration is for the manufacturer to provide an output frequency that is proportional to the energy or active power under steady load conditions. this output frequency can provide a simple, single wire, optically isolated interface to external calibration equip- ment. figure 32 illustrates the energy-to-frequency conversion in the ade7756. active power offset calibration msb transition apos [11:0] 23 0 energy-to-frequency active power signal p 20 lpf2 waveform [23:0] 23 0 11 0 11 0 cfdiv[11:0] cf figure 32. energy-to-frequency conversion the energy-to-frequency conversion is accomplished by accumu- lating the active power signal in a 24-bit register. an output pulse is generated when there is a zero to one transition on the msb (most significant bit) of the register. under steady load con- ditions the output frequency is proportional to the active power. the output frequency at cf, with full-scale ac signals on chan- nel 1 and channel 2 and cfdiv = 000h and apgain = 000h, is approximately 5.593 khz. this can be calculated as follows: with the active power gain register set to 000h, the average value of the instantaneous power signal (output of lpf2) is cccdh or 52,429 decimal. an output frequency is generated on cf when the msb in the digital-to-frequency register (24 bits) toggles, i.e., when the register accumulates 2 23 . this means the register is updated 2 23 /cccdh times (or 159.999 times). since the update rate is 4/clkin or 1.1175 s, the time between msb toggles (cf pulses) is given as: 159.999 1.1175 s = 1.78799 10 C4 s = 5592.86 hz . equation 8 gives an expression for the output frequency at cf with the cfdiv register = 0. cf hz average lpf output clkin () = 2 2 25 (8) this output frequency is easily scaled by the calibration fre- quency division register (cfdiv[11:0]). this frequency scaling register is a 12-bit register that scales the output frequency by 1 to 2 12 . the output frequency is given in equation 9. frequency frequency cfdiv cfdiv = = + () 0 1 (9) for example, if the output frequency is 5.59286 khz while the content of cfdiv is zero (000h), the output frequency can be set to 5.4618 hz by writing 3ffh hex (1023 decimal) to the cfdiv register. the power-up default value in cfdiv is 3fh. the output frequency will have a slight ripple at a frequency equal to twice the line frequency. this is due to imperfect filtering of the instantaneous power signal to generate the active power signalsee active power calculation section. equation 3 g ives an expression for the instantaneous power signal. this is filtered by lpf2, which has a magnitude response given by equation 10. |()| /. hf fhz = + 1 189 (10) the active power signal (output of lpf2) can be rewritten as pt vi vi fl hz fl t () C /. cos ( ) = + ? ? ? ? ? ? 12 89 4 (11) where fl is the line frequency (e.g., 60 hz) from equation 6 et vit vi fl fl hz fl t () C /. sin ( ) = + () ? ? ? ? ? ? 41289 4 (12) from equation 12 it can be seen that there is a small ripple in the energy calculation due to a sin(2 t) component. this is shown graphically in figure 33. the active energy calculation is shown by the dashed straight line and is equal to v i t. the sinusoidal ripple in the active energy calculation is also shown. since the average value of a sinusoid is zero, this ripple will contribute nothing to the energy calculation over time. how- ever, the ripple can be observed in the frequency output, especially at higher output frequencies. the ripple will get larger as a percentage of the frequency at larger loads and higher output frequencies. the reason is simply that at higher output frequen- cies the integration or averaging time in the energy-to-frequency conversion process is shorter. as a consequence, some of the sinusoidal ripple is observable in the frequency output. choosing a lower output frequency at cf for calibration can significantly
rev. 0 ade7756 C24C reduce the ripple. also, averaging the output frequency by using a longer gate time for the counter will achieve the same results. t e(t) vit vi 4 f l (1 + 2 f l /8.9hz sin(4 f l t) figure 33. output frequency ripple energy calibration by using the on-chip zero-crossing detection on channel 2 the energy calibration can be greatly simplified and the time required to calibrate the meter can be significantly reduced. to use the zero-cross detection the ade7756 is placed in calibration mode by setting bit 7 (cmode) in the mode register. in calibration mode the ade7756 accumulates the active power signal in the active energy register for an integral number of half cycles, as shown in figure 34. the number of half-line cycles is specified in the sagcyc register. the ade7756 can accumulate active power for up to 255 half-cycles. because the active power is integrated on an integral number of line cycles, the sinusoidal component is reduced to zero. this eliminates any ripple in the energy calculation. energy is calculated more accurately and in a shorter time because integration period can be shortened. at the end of an energy calibration cycle the sag flag in the inter- rupt status register is set; this will cause the sag output to go active low. if the sag enable bit in the interrupt enable register is enabled, the irq output will also go active low. thus the irq line can be used to signal the end of a calibration also. another calibration cycle will start as long as the cmode bit in the mode register is set. note that the result of the first calibration is invalid and must be ignored. the result of all subsequent calibration cycles is correct. from equations 5 and 11, e t vidt vi fl hz tdt nt nt () C /. cos ( ) 00 12 89 2 + ? ? ? ? ? ? (13) where n is an integer and t is the line cycle period. since the sinusoidal component is integrated over an integer number of line cycles, its value is always zero. therefore: e t vidt nt () = 0 (14) e t vint () = (15) apos [11:0] 23 0 aenergy[39:0} active power signal p lpf2 waveform [23:0] 39 11 0 sagcyc[7:0] cccdh calibration control zero cross detect lpf1 0 00h channel 2 adc from multiplier figure 34. energy calculation in calibration mode calibrating the energy meter calculating the average active power when calibrating the ade7756, the first step is to calibrate the frequency on cf to some required meter constant, e .g., 3200 imp/kwh. in order to determine the output frequency on cf, the average value of the active power signal (output of lpf2) must first be determined. one convenient way to do this is to use the calibra- tion mode. when the cmode (bit 7) bit in the mode register is set to a logic 1, energy is accumulated over an integer num- ber of half-line cycles as described in the last section. since the line frequency is fixed at, say, 60 hz, and the number of half-cycles of integration is specified, the total integration time is given as: 1 260 hz number of half cycles for 255 half-cycles this would give a total integration time of 2.125 seconds. this would mean the energy register was updated 2.125/1.1175 s (4/clkin) times. the average output value of lpf2 is given as: contents of aenergy at the end number of times aenergy was updated [:] [:] 39 0 39 0 or equivalently, in terms of contents of various ade7756 regis- ters and clkin and line frequencies ( fl ): average word lpf aenergy fl sagcyc clkin () [:] [: ] 2 39 0 8 70 = (16) where fl is the line frequency. calibrating the frequency at cf once the average active power signal is calculated it can be used to determine the frequency at cf before calibration. when the frequency before calibration is known, the calibration frequency divider register (cfdiv) and the active power gain register (apgain) can be adjusted to produce the required fre quency on cf. in this example, a meter constant of 3200 imp/kwh is chosen as an appropriate constant. this means that under a steady load of 1 kw, the output frequency on cf would be, frequency cf imp kwh hz () / . = == 3200 60 60 3200 3600 0 8888 min sec
rev. 0 ade7756 C25C assuming the meter is set up with a test current (basic current) of 20 a and a line voltage of 220 v for calibration, the load is calculated as 220 v 20 a = 4.4 kw. therefore the expected output frequency on cf under this steady load condition would be 4.4 0.8888 hz = 3.9111 hz. under these load conditions the transducers on channel 1 and channel 2 should be selected such that the signal on the voltage channel should see approximately half scale and the signal on the current channel about 1/8 of full scale (assuming a maximum current of 80a). the average value from lpf2 is calculated as 3,276.81 decimal using the calibration mode as described above. then, using equation 8 (energy to frequency conver- sion), the frequency under this load is calculated as: frequency cf mhz hz () .. . = = 3276 81 3 579545 2 349 566 25 however, this is the frequency with the contents of the cfdiv and apgain registers equal to 000h. the desired frequency out is 3.9111 hz. therefore the cf frequency must be divided by 349.566/3.9111 hz or 89.378 decimal. this is achieved by loading the cf divide register with 88 (or 58h)note the cf frequency is divided by the contents of cfdiv + 1. the fine adjustment of the output frequency can be made using the ac tive power gain register. this register has a fine gain adjustment of 0.0244%/lsb. with the cf divide register con- tents equal to 58h, the output frequency is given as 349.556 hz/ 89 = 3.9276 hz. this setting has an error of 0.42%. this error can be further reduced by writing C(0.21/0.0244) or C17 to apgain[11:0] i.e., fefh. calibrating cf is made easy by using the calibration mode on the ade7756. the only critical part of the setup is that the line frequency be exactly known. if this is not possible, it could be measured by using the zx output of the ade7756. energy meter display besides the pulse output which is used to verify calibration, a solid state energy meter will very often require some form of display. the display should display the amount of energy con- sumed in kwh (kilowatt hours). one convenient and simple way to interface the ade7756 to a display or energy register (e.g., mcu with nonvolatile memory) is to use cf. for example the cf frequency could be calibrated to 1,000 imp/kwh. the mcu would count pulses from cf. every pulse would be equivalent to 1 watt-hour. if more resolution is required the cf frequency could be set to, say, 10,000 imp/kwh. if more flexibility is required when monitoring energy usage, the active energy register (aenergy) can be used to calculate energy. a full description of this register can be found in the energy calculation section. the aenergy register gives the user both sign and magnitude information regarding energy consumption. on completion of the cf frequency output cali- bration, i.e., after the active power gain (apgain) register has been adjusted, a second calibration sequence can be initiated. the purpose of this second calibration routine is to determine a kwh/lsb coefficient for the aenergy register. once the coefficient has been calculated the mcu can determine the energy consumption at any time by reading the aenergy contents and multiplying by the coefficient to calculate kwh. clkin frequency in this data sheet, the characteristics of the ade7756 are shown with clkin frequency equal to 3.579545 mhz. however, the ade7756 is designed to have the same accuracy at any clkin frequency within the specified range. if the clkin frequency is not 3.579545 mhz, various timing and filter characteristics will need to be redefined with the new clkin frequency. for example, the cut-off frequencies of all digital filters (lpf1, lpf2, hpf1, etc.) will shift in proportion to the change in clkin frequency according to the following equation: new frequency original frequency clkin frequency mhz = 3 579545 . (17) the change of clkin frequency does not affect the timing characteristics of the serial interface because the data transfer is synchronized with serial clock signal (sclk). but one needs to observe the read/write timing of the serial data transfer-see timing characteristics. table iii lists various timing changes that are affected by clkin frequency. application information application note an-564 contains detail information on how to design a ansi class 100 watt-hour meter based on the ade7756. it is available from the ade7756 product home page under the appl ication note link. figure 35 shows the block dia- gram of the ade7756 reference meter implemented in an-564. rs-232 220v load l1 l2 n ade7756 16 2 lcd display eeprom spi bus pic16c62b cf figure 35. block diagram of the ade7756 reference meter described in an-564 table iii. frequency dependencies of the ade7756 parameters clkin parameter dependency nyquist frequency for ch 1 and 2 adcs clkin/8 phcal resolution (seconds per lsb) 16/clkin active energy register update rate (hz) clkin/4 waveform sampling rate (number of samples per second) wavsel 1, 0 = 0 0 clkin/128 0 1 clkin/256 1 0 clkin/512 1 1 clkin/1024 maximum zxtout period 524,288/clkin
rev. 0 ade7756 C26C suspending the ade7756 functionality the analog and the digital circuit can be suspended separately. the analog portion of the ade7756 can be suspended by set- ting the asuspend bit (bit 4) of the mode register to logic highsee mode register section. in suspend mode, all wave- form samples from the adcs will be set to zeros. the digital circuitry can be halted by holding the clkin input to 0 or 1. the ade7756 can be reactivated by restoring the clkin input and setting the asuspend bit to logic low. serial interface all ade7756 functionality is accessible via several on-chip registerssee figure 36. the contents of these registers can be updated or read using the on-chip serial interface. after power- on, or toggling the reset pin low, on a falling edge on cs , the ade7756 is placed in communications mode. in communications mode the ade7756 expects a write to its communications register. the data written to the communications register deter- mines whether the next data transfer operation will be a read or a write and also which register is accessed. therefore all data trans- fer operations with the ade7756, whether a read or a write, must begin with a write to the communications register. communications register register address decode register #1 register #2 register #3 register #n 1 register #n in out in out in out in out in out din dout figure 36. addressing ade7756 registers via the communications register the communications register is an 8-bit-wide register. the msb determines whether the next data transfer op eration is a read or a write. the 5 lsbs contain the address of the register to be accessed. see communications register section for a more detailed description. figure 37a and 37b show the data transfer sequences for a read and write operation respectively. on completion of a data transfer (read or write) the ade7756 once again enters communications mode. communications register write 00 address cs din dout sclk multibyte read data 0 figure 37a. data from the ade7756 via the serial interface communications register write 00 address cs din sclk 1 multibyte write data figure 37b. wri ting data to the ade7756 via the serial inte rface a data transfer is complete when the lsb of the ade7756 register being addressed (for a write or a read) is transferred to or from the ade7756. the serial interface of the ade7756 is made up of four signals sclk, din, dout, and cs . the serial clock for a data trans- fer is applied at the sclk logic input. this logic input has a schmitt-trigger input structure, which allows slow rising (and falling) clock edges to be used. all data transfer operations are synchronized to the serial clock. data is shifted into the ade7756 at the din logic input on the falling edge of sclk. data is shifted out of the ade7756 at the dout logic output on a rising edge of sclk. the cs logic input is the chip select input. this input is used when multiple devices share the serial bus. a falling edge on cs also resets the serial interface and places the ade7756 in communications mode. the cs input should be driven low for the entire data transfer operation. bringing cs high during a data transfer operation will abort the transfer and place the serial bus in a high impedance state. the cs logic input may be tied low if the ade7756 is the only device on the serial bus. however, with cs tied low all initiated data transfer operations must be fully completed, i.e., the lsb of each register must be trans- ferred as there is no other way of bringing the ade7756 back into communications mode without resetting the entire device, i.e., using reset . serial write operation the serial write sequence takes place as follows. with the ade7756 in communications mode (i.e., the cs input logic low), a write to the communications register first takes place. the msb of this byte transfer is a 1, indicating that the data transfer operation is a write. the lsbs of this byte contain the address of the register to be written to. the ade7756 starts shifting in the register data on the next falling edge of sclk. all remaining bits of register data are shifted in on the falling edge of subsequent sclk pulsessee figure 38. as explained earlier, the data write is initiated by a write to the communications register followed by the data. during a data write operation to the ade7756, data is transferred to all on- chip registers one byte at a time. after a byte is transferred into the serial port, there is a finite time before it is transferred to one of the ade7756 on-chip registers. although another byte tran sfer to the serial port can start while the previous byte is being transferred to an on-chip register, this second byte trans- fer should not finish until at least 4 s after the end of the previous byte transfer. this functionality is expressed in the timing speci- fication t 6 see figure 38. if a write operation is aborted during a byte transfer ( cs brought high), that byte will not be written to the destination register. destination registers may be up to 2 bytes widesee register descriptions section. hence the first byte shifted into the serial port at din is transferred to the msb (most significant byte) of the destination register. if the addressed register is 12 bits
rev. 0 ade7756 C27C wide, for example, a 2-byte data transfer must take place. the data is always assumed to be right justified, therefore, in this case, the 4 msbs of the first byte would be ignored and the 4 lsbs of the first byte written to the ade7756 would be the 4 msbs of the 12-bit word. figure 39 illustrates this example. serial read operation during a data read operation from the ade7756, data is shifted out at the dout logic output on the rising edge of sclk. as was the case with the data write operation, a data read must be preceded with a write to the communications register. with the ade7756 in communications mode (i.e., cs logic low) an 8-bit write to the communications register first takes place. the msb of this byte transfer is a 0, indicating that the next data transfer operation is a read. the lsbs of this byte contain the address of the register to be read. the ade7756 starts shifting out of the register data on the next rising edge of sclksee figure 40. at this point the dout logic output leaves its high impedance state and starts driving the data bus. all remaining bits of register data are shifted out on subsequent sclk rising edges. the serial interface also enters communi- cations mode again as soon as the read has been completed. at this point the dout logic output enters a high impedance state on the falling edge of the last sclk pulse. the read operation may be aborted by bringing the cs logic input high before the data transfer is complete. the dout output enters a high impedance state on the rising edge of cs . when an ade7756 register is addressed for a read operation, the entire contents of that register are transferred to the serial port. this allows the ade7756 to modify its on-chip registers without the risk of corrupting data during a multibyte transfer. note when a read operation follows a write operation, the read command (i.e., write to communications register) should not happen for at least 4 s after the end of the write operation. if the read command is sent within 4 s of the write operation, the last byte of the write operation may be lost. this is given as timing specification t 9 . t 5 t 4 cs sclk din a4 a3 a2 a1 a0 db7 most significant byte 1 db0 db7 db0 least significant byte 00 command byte t 1 t 2 t 3 t 6 t 7 t 8 figure 38. serial interface write timing diagram sclk x x x x db11 db10 db9 db8 din most significant byte db3 db2 db1 db0 db7 db6 db5 db4 least significant byte figure 39. 12-bit serial write operation cs sclk din a4 a3 a2 a1 a0 000 t 1 t 10 dout db7 most significant byte least significant byte command byte db0 db7 db0 t 13 t 12 t 9 t 11 t 11 figure 40. serial interface read timing diagram
rev. 0 ade7756 C28C table iv. register list no. of address name r/w bits default description 00h not used no operation. 01h waveform r 24 0h the w aveform register is a 24 bit read-only register. this r egister contains the sampled waveform data from either channel 1, channel 2 or the active power signal. the data source is selected by data bits 14 and 13 in the mode registersee channel 1 and 2 sampling sections. 02h aenergy r 40 0h the active energy register. active power is accumulated (integrated) over time in this 40-bit, read-only register. the energy register can hold a minimum of 6 seconds of active energy information with full-scale analog inputs before it overflowssee energy calculation section. 03h rstenergy r 40 0h same as the active energy register except that the register is reset to zero following a read operation 04h status r 8 0h the interrupt status register. this is an 8-bit read-only register. the status register contains information regarding the source of ade7756 interruptssee interrupts section. 05h rststatus r 8 0h same as the interrupt status register except that the register contents are reset to zero (all flags cleared) after a read operation. 06h mode r/w 16 000ch the mode register. this is a 16-bit register through which most of the ade7756 functionality is accessed. signal sample rates, filter enabling and calibration modes are selected by writing to this register. the contents may be read at any timesee mode register section. 07h cfdiv r/w 12 3fh the frequency divider register. this is a 12-bit read/write register. the output frequency on the cf pin is adjusted by writing to this registersee energy to frequency conversion section . 08h ch1os r/w 6 0h channel 1 offset adjust. writing to this 6-bit register allows any off- sets on channel 1 to be removedsee analog inputs section. 09h ch2os r/w 6 0h channel 2 offset adjust. writing to this 6-bit register allows any off- sets on channel 2 to be removedsee analog inputs section. 0ah gain r/w 8 0h pga gain adjust. this 8-bit register is used to adjust the gain selec- tion for the pga in channel 1 and channel 2analog inputs section. 0bh apgain r/w 12 0h active power gain adjust. this is a 12-bit register. the active power calculation can be calibrated by writing to this register. the calibration range is 50% of the nominal full scale active power. the resolution of the gain adjust is 0.0244%/lsbsee channel 1 adc gain adjust section. 0ch phcal r/w 6 0h phase calibration register. the phase relationship between channel 1 and ch annel 2 can be adjusted by writing to this 6-bit re gister. the adjustment range is approximately 3.1 at 60 hz in 0.097 stepssee phase compensation section. 0dh apos r/w 12 8h active power offset correction. this 12-bit register allows small off- sets in the active power calculation to be removedsee active power calculation section. 0eh zxtout r/w 12 ffffh zero-cross time out. if no zero crossings are detected on channel 2 within a time period specified by this 12-bit register, the interrupt request line ( irq ) will be activated. the maximum time-out period is 0.15 secondsee zero crossing detection section. 0fh sagcyc r/w 8 ffh sag line cycle register. this 8-bit register specifies the number of consecutive half line cycles the signal on channel 2 must be b elow saglvl before the sag output is activatedsee v oltage sag detec- tion section. it is also used during calibration mode to set the number of line cycles active power is accumulated for energy calibrationsee energy calibration section.
rev. 0 ade7756 C29C table iv. register list (continued) no. of address name r/w bits default description 10h irqen r/w 8 0h interrupt enable register. ade7756 interrupts may be deactivated at any time by setting the corresponding bit in this 8-bit enable register logic 0. the status register will continue to register an interrupt event even if disabled. however, the irq output will not be activated see interrupts section. 11h saglvl r/w 8 0h sag voltage level. an 8-bit write to this register determines at what peak signal level on channel 2 the sag pin will become active. the signal must remain low for the number of cycles specified in the sagcyc register before the sag pin is activatedsee line voltage sag detec- tion section. 12h temp r 8 0h temperature register. this is an 8-bit register which contains the result of the latest temperature conversion. a full description of this registers contents can be found in the temperature measurement section of this data sheet. register descriptions all ade7756 functionality is accessed via the on-chip registers. each register is accessed by first writing to the communicatio ns register and then transferring the register data. a full description of the serial interface protocol is given in the serial in terface section of this data sheet. communications register the communications register is an 8-bit, write-only register that controls the serial data transfer between the ade7756 and the host processor. all data transfer operations must begin with a write to the communications register. the data written to the communi ca- tions register determines whether the next operation is a read or a write and which register is being accessed. table v outline s the bit designations for the communications register. table v. communications register db7 db6 db5 db4 db3 db2 db1 db0 w/ r 0 0 a4 a3 a2 a1 a0 bit bit location mnemonic description 0 to 4 a0 to a4 the five lsbs of the communications register specify the register for the data transfer opera- tion. table iv lists the address of each ade7756 on-chip register. 5 to 6 reserved these bits are unused and should be set to zero. 7w/ r when this bit is a logic 1, the data transfer operation immediately following the write to the communications register will be interpreted as a write to the ade7756. when this bit is a logic 0, the data transfer operation immediately following the write to the communications register will be interpreted as a read operation.
rev. 0 ade7756 C30C mode register (06h) the ade7756 functionality is configured by writing to the mode register. table vi summarizes the functionality of each bit in t he mode register. table vi. mode register bit bit location mnemonic description 0 dishpf the hfp (high-pass filter) in channel 1 is disabled when this bit is set. 1 dislpf2 the lpf (low-pass filter) after the multiplier (lpf2) is disabled when this bit is set. 2 discf the frequency output cf is disabled when this bit is set. 3 dissag the line voltage sag detection is disabled when this bit is set. 4 asuspend by setting this bit to logic 1, both ade7756s a/d converters can be turned off. in normal operation, this bit should be left at logic 0. all digital functionality can be stopped by sus- pending the clock signal at clkin pin. 5 tempsel the temperature conversion starts when this bit is set to one. this bit is automatically reset to zero when the temperature conversion is finished. 6 swrst software chip reset. a data transfer should not take place to the ade7756 for at least 18 s after a software reset. 7 cmode setting this bit to a logic 1 places the chip in calibration mode. 8 disch1 adc 1 (channel 1) inputs are internally shorted together. 9 disch2 adc 2 (channel 2) inputs are internally shorted together. 10 swap by setting this bit to logic 1 the analog inputs v2p and v2n are connected to adc 1 and the analog inputs v1p and v1n are connected to adc 2. 12, 11 dtrt1, 0 these bits are used to select the waveform register update rate. dtrt 1 dtrt0 update rate 0 0 27.9 ksps (clkin/128) 0 1 14 ksps (clkin/256) 1 0 7 ksps (clkin/512) 1 1 3.5 ksps (clkin/1024) 14, 13 wavsel1, 0 these bits are used to select the source of the sampled data for the waveform register wavsel1 wavsel0 source 0 0 active power signal (output of lpf2) 0 1 reserved 1 0 channel 1 1 1 channel 2 15 test1 writing a logic 1 to this bit position places the ade7756 in test mode. this is intended for factory testing only and should be left at zero. mode register * u qbuec ur muuuuuuuef q mquuuuquf eeu5uh eru5u reu5ur rru5uh mquuquuqquqf eeu5uhlsfumirh%f eru5urpspumihtcf reu5ulshumitrhf rru5uuscumirehpf q mquruquhuqf h muuqquuuquhf r muuqquuuqurf * register contents show power-on defaults 00000000 76543210 00001100 8 9 10 11 12 13 14 15 dishpf (disable hpf in channel 1) dislpf2 (disable lpf2 after multiplier) discf (disable frequency output cf) dissag (disable sag output) asuspend (suspend ch1 and ch2 adcs) tempsel (start temperature sensing) swrst (software chip reset) cmode (calibration mode) figure 41.
rev. 0 ade7756 C31C interrupt status register (04h) / reset interrupt status register (05h) the status register is used by the mcu to determine the source of an interrupt request ( irq ). when an interrupt event occurs in the ade7756, the corresponding flag in the interrupt status register is set logic high. if the enable bit for this flag is logic 1 in the inter- rupt enable register, the irq logic output goes active low. when the mcu services the interrupt it must first carry out a read from the interrupt status register to determine the source of the interrupt. table vii. interrupt status register, reset interrupt status register and interrupt enable register bit interrupt location flag description 0 aehf indicates that an interrupt was caused by the 0 to 1 transition of the msb of the active energy register. 1 sag indicates that an interrupt was caused by a sag on the line voltage or no zero crossings were detected. in calibration mode this flag is also used to indicate the end of an integration over an integer number of half line cyclessee energy calibration section. 3 wsmp indicates that new data is present in the waveform register. 4 zx this status bit reflects the status of the zx logic outputsee zero crossing detection section. 5 temp indicates that a temperature conversion result is available in the temperature register. 7 aeof indicates that the active energy register has overflowed. interrupt status register * u qbuepuiubuet q mquuuf u5ue * register contents show power-on defaults 00000000 76543210 aehf (active energy register half full) sag (line voltage sag detect) reserved = 0 wsmp (waveform sampling) figure 42. interrupt status register interrupt enable register * u qbure q mquuuf u5ue * register contents show power-on defaults 00000000 76543210 aehf (active energy register half full) sag (line voltage sag detect) reserved = 0 wsmp (waveform sampling) figure 43. interrupt enable register
rev. 0 C32C c02438C2.5C4/01(0) printed in u.s.a. ade7756 outline dimensions dimensions shown in inches and (mm). 20-lead plastic dip (n-20) 20 110 11 pin 1 1.060 (26.90) 0.925 (23.50) 0.280 (7.11) 0.240 (6.10) 0.195 (4.95) 0.115 (2.93) 0.015 (0.381) 0.008 (0.204) 0.325 (8.25) 0.300 (7.62) seating plane 0.060 (1.52) 0.015 (0.38) 0.210 (5.33) max 0.022 (0.558) 0.014 (0.356) 0.160 (4.06) 0.115 (2.93) 0.100 (2.54) bsc 0.070 (1.77) 0.045 (1.15) 0.130 (3.30) min 20-lead shrink small outline package (rs-20) 20 11 10 1 0.295 (7.50) 0.271 (6.90) 0.311 (7.9) 0.301 (7.64) 0.212 (5.38) 0.205 (5.21) pin 1 seating plane 0.008 (0.203) 0.002 (0.050) 0.07 (1.78) 0.066 (1.67) 0.0256 (0.65) bsc 0.078 (1.98) 0.068 (1.73) 0.009 (0.229) 0.005 (0.127) 0.037 (0.94) 0.022 (0.559) 8 0


▲Up To Search▲   

 
Price & Availability of ADE7756AN-REF

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X